package com.example.edu.mapper;

import com.example.edu.bean.ExamPageBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Felix
 * @date 2024/7/03
 * 流量域统计mapper接口
 */

@Mapper
public interface ExamMapper {
    //获取某天各个渠道独立访客
    @Select("select paper_name,sum(person_num) person_num,avg(score/person_num) avg_score,avg(duration_sec/person_num) avg_second " +
            "from edu_realtime.dws_exam_page_window\n" +
            " where cur_date = #{date} group by paper_name;")



    List<ExamPageBean> selectExamPage(@Param("date") String date);


}
